<template>
  <view class="search_div">
    <view class="search_item">
      <u-search :showAction="false" label="惠州" placeholder="请搜索价格/品牌/车型" bgColor="#F5F7FA" borderColor="#e9e9e9"
        v-model="name" shape="square" @tap="toSearch" disabled></u-search>
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        name: ''
      }
    },
    methods: {
      toSearch() {
        uni.navigateTo({
          url: '../../pages/search/search',
        })
      },
      toMyCollect() {
        uni.navigateTo({
          url: '../../pages/myCollection/myCollection'
        })
      }

    }
  }
</script>

<style lang="scss" scoped>
  .search_div {
    padding: 20upx 10upx;
    display: flex;

    .search_item {
      flex: 1;
    }

    .collect_item {
      width: 80upx;
      display: flex;
      justify-content: center;
      align-items: center;

      image {
        width: 55upx;
        height: 55upx;
      }
    }
  }
</style>
